import util from "@/libs/util"
// 维保人员列表-维保人员列表
export function getuseOrgInfoList (data) {
  return util.http({
    url: `/biz-maint/maint/useOrgInfo/list`,
    method: "post",
    data
  })
}

export function getadminuseOrgInfoList (data) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/list`,
    method: "post",
    data
  })
}

export function getAdminuseOrgInfo (id) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/`+id,
    method: "get"
  })
}

export function addAdminuseOrgInfo(data) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/insert`,
    method: "post",
    data
  })
}

export function editAdminuseOrgInfo (data) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/edit`,
    method: "put",
    data
  })
}

export function createUseAcount (data) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/createAcount`,
    method: "put",
    data
  })
}

export function createAllUseAcount (data) {
  return util.http({
    url: `/biz-maint/maint/init/initUseOrgUserName`,
    method: "post",
    data
  })
}


export function getadminOrgInfoList (data) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/org-list`,
    method: "post",
    data
  })
}


export function getadminOrgInfoListNew (data) {
  return util.http({
    url: `/biz-maint/maint-admin/useOrgInfo/org-list1`,
    method: "post",
    data
  })
}
